class CreateUserAssets < ActiveRecord::Migration
  def self.up
    create_table :user_assets do |t|
      t.integer :user_id
      t.column :description, :string
      t.column :ext, :string
      t.column :content_type, :string
      t.column :filename, :string
      t.column :binary_data, :binary
      t.column :width, :integer
      t.column :height, :integer

      t.timestamps
    end
  end

  def self.down
    drop_table :user_assets
  end
end
